package com.jdbc.day03.Service.ServiceImpl;

import com.jdbc.day01.dao.EasybuyProductMapper;
import com.jdbc.day02.entitys.EasybuyProduct;
import org.springframework.stereotype.Service;

import com.jdbc.day03.Service.EasybuyProductService;

import javax.annotation.Resource;

@Service(value = "userproduct")
public class EasybuyProductServiceImpl implements EasybuyProductService{
    @Resource
    private EasybuyProductMapper productmapper;

    public EasybuyProductMapper getProductmapper() {
        return productmapper;
    }

    public void setProductmapper(EasybuyProductMapper productmapper) {
        this.productmapper = productmapper;
    }

    @Override
    public int deleteByPrimaryKey(Integer id) {
        return productmapper.deleteByPrimaryKey(id);
    }

    @Override
    public EasybuyProduct selectByPrimaryKey(Integer id) {
        return null;
    }

    @Override
    public int updateByPrimaryKey(EasybuyProduct record) {
        return 0;
    }

    @Override
    public int updateByPrimaryKeySelective(EasybuyProduct record) {

        return productmapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int insertSelective(EasybuyProduct record) {
        return 0;
    }

    @Override
    public int insert(EasybuyProduct record) {
        return 0;
    }
}
